assume cs:code

data segment
	db "div overflow"
data ends

code segment
	start:
	

	;offset lay- offset do0
	lay:
	; 将中断处理程序放在中断向量表中0位置处
	mov ax,0000h
	mov ds,ax

	;
	mov word ptr ds:[0],offset do0
	mov word ptr ds:[2],code

	; 产生除法溢出
	mov ax,10
	mov bl,0
	div bl
	
	do0:
	; 写好中断处理程序 在屏幕中打印文字
	mov ax,data
	mov ds,ax
	mov bx,0

	mov bp,0
	
	mov ax,0b872h
	mov es,ax
	mov di,0


	; 数据转移 12个字符
	mov cx,12

	dc:
	;{
	mov al,ds:[bx]
	mov es:[si],al
	mov byte ptr es:[si+1],02h


	inc bx
	add si,2
	loop dc
	;}

	mov ax,4c00h
	int 21h

code ends
end start
